<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html>
<head>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/ajax-1.0.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery_last.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery-1.4.2.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery-impromptu.2.7.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery-selected.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.form.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.form.wizard.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.lazyload.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.treeview.js"></script>
<script type="text/javascript"
	src="<%=request.getContextPath()%>/js/jQuery/jquery.validate.js"></script>
<title>Login Form</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
</head>
<script type="text/javascript">
	$(document).ready(function() {
		$("#b01").click(function() {
		var logLevel = $("#logLevel").val();
		var url = "<%=request.getContextPath()%>/logService.do?method=changeloglevel&logLevel="+logLevel;
											$.ajax({
														type : "post",
														url : url,
														datatype : "json",
														contentType : "application/x-www-form-urlencoded; charset=utf-8",
														success : function(data) {
															if (data == "1") {
																alert("更改成功");
															} else{
															    alert("更改失败");
															}
														},
														error : function(
																XMLHttpRequest,
																textStatus,
																errorThrown) {
															alert(errorThrown);
														}
													});
										});
					});
					
</script>
<body>
	
	日志级别: <select id="logLevel" name="logLevel">
			<option value='INFO'>INFO</option>
			<option value='DEBUG'>DEBUG</option>
			<option value='WARN'>WARN</option>
			<option value='ERROR'>ERROR</option>
			
		</select> 
	 <input id="b01" type="button"	value="更改" />
</body>
</html>
